package com.ruoyi.labdata.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.labdata.mapper.LabCasTypeMapper;
import com.ruoyi.labdata.domain.LabCasType;
import com.ruoyi.labdata.service.ILabCasTypeService;

/**
 * 危化品名录Service业务层处理
 * 
 * @author malang
 * @date 2022-03-06
 */
@Service
public class LabCasTypeServiceImpl implements ILabCasTypeService 
{
    @Autowired
    private LabCasTypeMapper labCasTypeMapper;

    /**
     * 查询危化品名录
     * 
     * @param id 危化品名录ID
     * @return 危化品名录
     */
    @Override
    public LabCasType selectLabCasTypeById(Long id)
    {
        return labCasTypeMapper.selectLabCasTypeById(id);
    }

    /**
     * 查询危化品名录列表
     * 
     * @param labCasType 危化品名录
     * @return 危化品名录
     */
    @Override
    public List<LabCasType> selectLabCasTypeList(LabCasType labCasType)
    {
        return labCasTypeMapper.selectLabCasTypeList(labCasType);
    }

    /**
     * 新增危化品名录
     * 
     * @param labCasType 危化品名录
     * @return 结果
     */
    @Override
    public int insertLabCasType(LabCasType labCasType)
    {
        return labCasTypeMapper.insertLabCasType(labCasType);
    }

    /**
     * 修改危化品名录
     * 
     * @param labCasType 危化品名录
     * @return 结果
     */
    @Override
    public int updateLabCasType(LabCasType labCasType)
    {
        return labCasTypeMapper.updateLabCasType(labCasType);
    }

    /**
     * 批量删除危化品名录
     * 
     * @param ids 需要删除的危化品名录ID
     * @return 结果
     */
    @Override
    public int deleteLabCasTypeByIds(Long[] ids)
    {
        return labCasTypeMapper.deleteLabCasTypeByIds(ids);
    }

    /**
     * 删除危化品名录信息
     * 
     * @param id 危化品名录ID
     * @return 结果
     */
    @Override
    public int deleteLabCasTypeById(Long id)
    {
        return labCasTypeMapper.deleteLabCasTypeById(id);
    }
}
